<?php use_helper('moxego') ?>
 
<h1><?php echo $album->getName() ?></h1>
<h2><?php echo link_to($artist->getName(), '@artist_by_name?artist=' . $artist->getSlug()) ?></h2>
<h3>Lista de Faixas</h3>
<table>
  <thead>
    <tr>
      <th><br /></th>
      <th>Faixa</th>
      <th>Duração</th>
    </tr>
  </thead>
  
  <tbody>  
    <?php foreach($tracks as $track) : ?>
    <tr>
      <td><?php echo $track->getTrackNumber() ?></td>
      <td><?php echo format_lenght($track->getLenght()) ?></td>
      <td><?php echo link_to($track->getName(), '@music_by_name?artist=' . $artist->getSlug() . '&album=' . $album->getSlug() . '&music=' . $track->getSlug()) ?></td>
    </tr>
    <?php endforeach ?>
  </tbody>

</table>
